﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Sprout.Core.Dtos
{
    /// <summary>
    /// 层级结构父级
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class BaseLevel<T>
        where T : BaseLevel<T>
    {
        /// <summary>
        /// 主键
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        ///父级ID
        ///</summary>
        public string ParentId { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 子菜单
        /// </summary>
        public IList<T> Children { get; set; }
    }
}
